package com.zzxy.mvc4.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("test")
public class TestContoller {
    @RequestMapping("/list")
    public String test1(@RequestParam(defaultValue = "10",name = "uid", required = true) int uid){
        System.out.println(uid);
        return "forward:/user/list.do";
    }
}
